{block name="content"}
<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        <div class="panel-lead"><em>添加排课</em></div>
    </div>
    <div class="panel-body">
        <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Course')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <select id="c-course_id" data-rule="required" class="form-control selectpicker" name="row[course_id]">
                        {foreach name="courseList" item="vo" key="k"}
                        <option value="{$k}">{$vo}</option>
                        {/foreach}
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Community')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <select id="c-community_id" data-rule="required" class="form-control selectpicker" name="row[community_id]">
                        {foreach name="communityList" item="vo" key="k"}
                        <option value="{$k}">{$vo}</option>
                        {/foreach}
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Time zone')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <select id="c-time_zone_id" data-rule="required" class="form-control selectpicker" name="row[time_zone_id]">
                        {foreach name="timeZoneList" item="vo" key="k"}
                        <option value="{$k}">{$vo}</option>
                        {/foreach}
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Time slot')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <select id="c-time_slot_id" data-rule="required" class="form-control selectpicker" name="row[time_slot_id]">
                        {foreach name="timeSlotList" item="vo" key="k"}
                        <option value="{$k}">{$vo}</option>
                        {/foreach}
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Month')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <select id="c-month" data-rule="required" class="form-control selectpicker" name="row[month]">
                        {foreach name="monthList" item="vo" key="k"}
                        <option value="{$k}">{$vo}</option>
                        {/foreach}
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">日:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-day" data-rule="required" class="form-control" name="row[day]" type="number" value="">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Year')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-year" data-rule="required" class="form-control" name="row[year]" type="number" value="{:date('Y')}">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Teacher_id')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-teacher_id" data-source="teacher/index" class="form-control selectpage" name="row[teacher_id]" type="text" value="">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <textarea id="c-remark" class="form-control" name="row[remark]" rows="5"></textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
                <div class="col-xs-12 col-sm-8">
                    {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')])}
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
                <div class="col-xs-12 col-sm-8">
                    <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="0">
                </div>
            </div>
            <div class="form-group layer-footer">
                <label class="control-label col-xs-12 col-sm-2"></label>
                <div class="col-xs-12 col-sm-8">
                    <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
                    <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                </div>
            </div>
        </form>
    </div>
</div>
{/block}
